package com.bootdo.coupon.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.coupon.dao.CouponRefDao;
import com.bootdo.coupon.domain.CouponRefDO;
import com.bootdo.coupon.service.CouponRefService;
import org.springframework.transaction.annotation.Transactional;



@Service
@Transactional
public class CouponRefServiceImpl implements CouponRefService {
	@Autowired
	private CouponRefDao couponRefDao;
	
	@Override
	public CouponRefDO get(Long id){
		return couponRefDao.get(id);
	}
	
	@Override
	public List<CouponRefDO> list(Map<String, Object> map){
		return couponRefDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return couponRefDao.count(map);
	}
	
	@Override
	public int save(CouponRefDO couponRef){
		return couponRefDao.save(couponRef);
	}
	
	@Override
	public int update(CouponRefDO couponRef){
		return couponRefDao.update(couponRef);
	}
	
	@Override
	public int remove(Long id){
		return couponRefDao.remove(id);
	}
	
	@Override
	public int batchRemove(Long[] ids){
		return couponRefDao.batchRemove(ids);
	}
	
}
